package edu.xpu.project.user.entity;

import java.io.Serializable;
import java.util.Set;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

/**
 * @describe 学生班级表
 * @author liukang
 * @date 2017年5月19日
 */
@Entity(name="StudentClass")
@Table(name="XPU_CLASS")
public class StudentClass implements Serializable {

	private static final long serialVersionUID = 903053680933381989L;
	
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	private Long id;
	
	private String className;		//班级名称
	
	private String gradeName;		//年级名
	
	private String schoolName;		//学校名
	
	@OneToMany(mappedBy="studentClass")
	private Set<ProjectUser> projectUsers;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getClassName() {
		return className;
	}

	public void setClassName(String className) {
		this.className = className;
	}

	public Set<ProjectUser> getProjectUsers() {
		return projectUsers;
	}

	public void setProjectUsers(Set<ProjectUser> projectUsers) {
		this.projectUsers = projectUsers;
	}

	public String getGradeName() {
		return gradeName;
	}

	public void setGradeName(String gradeName) {
		this.gradeName = gradeName;
	}

	public String getSchoolName() {
		return schoolName;
	}

	public void setSchoolName(String schoolName) {
		this.schoolName = schoolName;
	}
	
}
